package com.jtzc.mcp.coze.infrastructure.servce;

import com.coze.openapi.client.workflows.run.RunWorkflowResp;
import com.jtzc.mcp.coze.infrastructure.dto.CozeWorkflowDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;

@Slf4j
public class GoodTools {



    @Tool(name = "创建商品主图", description = "根据输入的文本，创建一张商品主图")
    public void createGoodImage(String input) {
        CozeWorkflowDto dto = new CozeWorkflowDto();
        dto.setWorkflow_id("7518925581683048486");
        dto.setApp_id("7518804072565522442");
        dto.setInput(input);
        log.info("创建商品主图：{}", input);
        RunWorkflowResp runWorkflowResp = new CozeClinetService().runCozeWorkflow(dto);
        System.out.println(runWorkflowResp);
    }
}
